package org.csu.corp.persistence;


import org.apache.ibatis.annotations.Param;
import org.csu.corp.entity.Employee;
import org.csu.corp.entity.Sign;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface SignMapper {
    int insert(Sign record);

    int updateByPrimaryKey(Sign record);

    int deleteByPrimaryKey(Integer id);

//    Sign selectByPrimaryKey(Integer id);

    List<Sign> getSignByPage(@Param("page") Integer page, @Param("size") Integer size);

    List<Sign> getEmployeeByPageWithWorkId(@Param("page") Integer page, @Param("size") Integer size, String workId);

    Long getTotal(String workId);

    List<Sign> getSignByWorkIdAndClockInTime(String workId);

    List<Sign> getEmployeeByPageWithWorkIdAndTime( String beginDate,  String endDate, String workId);
}
